gdk/wayland: Unset GDK_BUTTON1_MASK on proximity_in
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 2 Dec 2021 15:53:47 +0000 (16:53 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 2 Dec 2021 16:06:35 +0000 (17:06 +0100)
commit9539cc4a93819d2915a3e097940f38d00b5bc202
treed24d9e570a850543311ad74c27d100dee0c08474
parent72cf304a861d41aa76d25aa6027a70d36e4261c5
gdk/wayland: Unset GDK_BUTTON1_MASK on proximity_in

In some circumstances (e.g. activating with a stylus something that
closes a window), we can receive zwp_tablet_tool.proximity_out without
receiving a zwp_tablet_tool.up beforehand.

In those cases, we are not expecting neither .up nor .button, so
reset the stylus device button modifiers on proximity_out.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4103
gdk/wayland/gdkdevice-wayland.c